extern "C" {
    int  win_main();
}

#include <Windows.h>

int WINAPI win_main()
{
    MessageBox(NULL, "Hello, Windows!", "Hello, Windows!", MB_OK);
    return 0;
}